package com.gluck.cases.core.block;

import com.github.pagehelper.PageInfo;
import com.gluck.cases.core.modal.dto.CasesApiDTO;
import com.gluck.cases.core.modal.entity.CasesApi;

import java.util.List;

/**
 * @ClassName CasesApiBlock
 * @Desc TODO
 * @Author shiyongzhe
 * @Date 2022/5/28 - 5:32 下午
 **/
public interface CasesApiBlock {

    boolean insert(CasesApi api);

    CasesApiDTO queryById(Long id);

    PageInfo<CasesApiDTO> queryByCondition(CasesApiDTO dto, int page, int size);

    boolean updateByCondition(CasesApiDTO dto);

    /**
     * 功能描述: 调取测试用例list 递归
     * @Params []
     * @Return java.util.List<com.gluck.stock.oauth.core.modal.entity.CasesApi>
     * @Author I`m Gluck
     * @Date 2022/5/28
     */
    List<CasesApiDTO> queryCasesList();

    boolean deleteById(Long id);
}
